import { handleDataStr } from '@/util/index'

const nameStr = `
groupId
companyId
shipmentNumber
invoiceNumber
invoiceType
docStatus
description
partnerUcode
partneContact
partnerLocation
partnerPhone
consigneeId
payerId
consigneeLocation
issotrx
saleDep
salesMan
invoiceDate
dataFrom
dataSend
currencyCode
taxId
paymentMethod
discountAmt
amountTotal
taxAmount
untaxAmount
printedDate
amountVat
amountUnvat
approveUser
rejectDesc
acctDate
posted
projectUcode
arLot
createBy
createDate
modifyBy
modifyDate
`

const chineseNameStr = `
集团ID
公司ID
发货单号
发票单号 
发票类型
单据状态
描述 
客户ID
客户联系人
客户地点 
客户电话
收货方
付款方
收货地点 
销售事务 
销售部门
营业员
业务日期 
数据来源
已发送
币别
税率 
结算方式
折扣金额
总金额 
税额
不含税金额
生成税票日期 
已开税票金额
未开税票金额
审批人
驳回描述
记账日期 
已过账 
项目ID
应收批次
创建人 
创建时间 
更新人 
更新时间 
`

export default handleDataStr(nameStr, chineseNameStr)

// const tableConfig = [
//   { name: 'invoiceNumber', chineseName: '发票单号 ', lang: 'erp.financial.invoiceNumber' },
//   { name: 'companyId', chineseName: '公司ID', lang: 'erp.financial.companyId' },
//   { name: 'partnerUcode', chineseName: '客户', lang: 'erp.financial.partnerUcode' },
//   { name: 'currencyCode', chineseName: '币别', lang: 'erp.financial.currencyCode' },
//   { name: 'paymentMethod', chineseName: '结算方式', lang: 'erp.financial.paymentMethod' },
//   { name: 'payerId', chineseName: '付款方', lang: 'erp.financial.payerId' },
//   { name: 'amountTotal', chineseName: '总金额 ', lang: 'erp.financial.amountTotal' },
//   { name: 'taxAmount', chineseName: '税额', lang: 'erp.financial.taxAmount' },
//   { name: 'untaxAmount', chineseName: '不含税金额', lang: 'erp.financial.untaxAmount' },
//   { name: 'docStatus', chineseName: '单据状态', lang: 'erp.financial.docStatus' },
//   { name: 'createBy', chineseName: '创建人 ', lang: 'erp.financial.createBy' },
//   { name: 'createDate', chineseName: '创建时间 ', lang: 'erp.financial.createDate' },
//   { name: 'modifyBy', chineseName: '更新人 ', lang: 'erp.financial.modifyBy' },
//   { name: 'modifyDate', chineseName: '更新时间', lang: 'erp.financial.modifyDate' }
// ]
// const formConfig = [
//基础信息
// { name: 'invoiceNumber', chineseName: '发票单号 ', lang: 'erp.financial.invoiceNumber', prop: true, disabled: true },
// { name: 'groupId', chineseName: '集团名称', lang: 'erp.financial.groupId', type: 'search', prop: true, searchType: 'group_code' },
// { name: 'companyId', chineseName: '公司名称', lang: 'erp.financial.companyId', type: 'search', prop: true },
// { name: 'partnerUcode', chineseName: '客户名称', lang: 'erp.financial.partnerUcode', type: 'search', prop: true },
// { name: 'currencyCode', chineseName: '币别', lang: 'erp.financial.currencyCode', type: 'search', prop: true },
// { name: 'paymentMethod', chineseName: '结算方式', lang: 'erp.financial.paymentMethod', type: 'search', prop: true },
// { name: 'payerId', chineseName: '付款方', lang: 'erp.financial.payerId', type: 'search', prop: true },
// { name: 'saleDep', chineseName: '销售部门', lang: 'erp.financial.saleDep', type: 'search', prop: true },
// { name: 'salesMan', chineseName: '营业员', lang: 'erp.financial.salesMan', type: 'search', prop: true },
// { name: 'issotrx', chineseName: '销售事务 ', lang: 'erp.financial.issotrx', type: 'select', prop: true, selectOption: ['Y', 'N'] },
// { name: 'consigneeId', chineseName: '收货方', lang: 'erp.financial.consigneeId', type: 'search', prop: true },
// { name: 'invoiceDate', chineseName: '业务日期 ', lang: 'erp.financial.invoiceDate', type: 'date', prop: true },
// { name: 'shipmentNumber', chineseName: '发货单号', lang: 'erp.financial.shipmentNumber' },
// { name: 'invoiceType', chineseName: '发票类型', lang: 'erp.financial.invoiceType', prop: true, type: 'select', selectOption: ['S 标准应收', 'C 费用应收', 'P 资产应收'] },
// { name: 'docStatus', chineseName: '单据状态', lang: 'erp.financial.docStatus', prop: true, disabled: true },
// { name: 'amountTotal', chineseName: '总金额 ', lang: 'erp.financial.amountTotal', disabled: true },
// { name: 'taxAmount', chineseName: '税额', lang: 'erp.financial.taxAmount', disabled: true },
// { name: 'untaxAmount', chineseName: '不含税金额', lang: 'erp.financial.untaxAmount', disabled: true },
// { name: 'projectUcode', chineseName: '项目ID', lang: 'erp.financial.projectUcode', type: 'search' },
// { name: 'discountAmt', chineseName: '折扣金额', lang: 'erp.financial.discountAmt', disabled: true },
// { name: 'receivedAmount', chineseName: '已收金额', lang: 'erp.financial.receivedAmount', disabled: true },
// { name: 'unpaidAmount', chineseName: '待收金额', lang: 'erp.financial.unpaidAmount', disabled: true },
// { name: 'dataFrom', chineseName: '数据来源', lang: 'erp.financial.dataFrom', disabled: true },
// { name: 'description', chineseName: '描述 ', lang: 'erp.financial.description', span: 24 }
//其他信息
// { name: 'partneContact', chineseName: '客户联系人', lang: 'erp.financial.partneContact' },
// { name: 'partnerLocation', chineseName: '客户地址 ', lang: 'erp.financial.partnerLocation' },
// { name: 'partnerPhone', chineseName: '客户联系电话', lang: 'erp.financial.partnerPhone' },
// { name: 'consigneeLocation', chineseName: '收货地点 ', lang: 'erp.financial.consigneeLocation' },
// { name: 'createBy', chineseName: '创建人 ', lang: 'erp.financial.createBy', disabled: true },
// { name: 'createDate', chineseName: '创建时间 ', lang: 'erp.financial.createDate', type: 'date' },
// { name: 'modifyBy', chineseName: '更新人 ', lang: 'erp.financial.modifyBy', disabled: true },
// { name: 'modifyDate', chineseName: '更新时间', lang: 'erp.financial.modifyDate', type: 'date' },
// { name: 'dataSend', chineseName: '已发送', lang: 'erp.financial.dataSend', type: 'select', selectOption: ['Y', 'N'], disabled: true }
// ]
